function [output, indices, explanation] = simplify(input, num_players_r, num_players_b, coef)

output = input;
indices = [];

maxvalue = max(abs(input));
num_removed = 0;

for index = 1:numel(input),
    element = abs(input(index));
    if (element < coef*maxvalue)
        %output(index) = 0;
        if(index ~= numel(input))
            output = [output(1:index-num_removed-1), output(index-num_removed+1:numel(output))];
        else
            output = output(1:index-num_removed-1);
            
        end
        num_removed = num_removed + 1;
    else
        indices(index-num_removed) = index;
    end
    
end

    explanation = explain(indices, num_players_r, num_players_b);
end